package com.tony.dbutil.dbrouter;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * Created by Administrator on 2017/1/23.
 */
public class CustomerRouterDataSource extends AbstractRoutingDataSource {
    protected Object determineCurrentLookupKey() {
        return CustomerContextHolder.getCustomerType();
    }
}
